﻿#include "mythread.h"

#include <QDebug>
#include <QEvent>

MyThread::MyThread()
{

}

bool MyThread::event(QEvent *e)
{
    qDebug()<<"event";
    return true;
}

void MyThread::run()
{
    for(int i=0;i<4;i++){
         qDebug()<<"run"<<i;
         sleep(1);
    }
}
